<?php
mysql_connect("localhost","root","");
mysql_select_db("fb");
if(isset($_POST['content'])){
	$content=$_POST['content'];
	mysql_query("INSERT INTO updates(post) values('$content')");
	$sql=mysql_query("SELECT post,id FROM updates order by id desc");
	$r=mysql_fetch_array($sql);
	$msg=$r['post'];
	
}
?>
<p class='alert alert-info'>
<?php echo $msg; ?><span class='pull-right'><a href='javascript:void'><i class='icon-pencil'></i></a> &nbsp;<a href='javascript:void'><i class='icon-remove'></i></a></span>
</p>